EPT: Assert p2m is locked in ept_sync_domain().
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 22 Sep 2009 13:19:38 +0000 (14:19 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 22 Sep 2009 13:19:38 +0000 (14:19 +0100)
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/arch/x86/hvm/vmx/vmx.c

index 3e4620fa0eaebcf42b0691152f49cf9da015fb22..c51f560ab330296f34c7e64bd09123a72e451242 100644 (file)
@@ -1233,6 +1233,7 @@ void ept_sync_domain(struct domain *d)
         return;
 
     ASSERT(local_irq_is_enabled());
+    ASSERT(p2m_locked_by_me(d->arch.p2m));
 
     /*
      * Flush active cpus synchronously. Flush others the next time this domain